// dlg.txt

//mark_quest_dest(zone,x,y,layer,quest);
//void cancel_out_fight(0,short kill_enc)
//void make_outdoor_enc(short x,short y,short which_enc)
//void set_out_fight_field(short which_field)

begintalkscript;

variables;

short this_sec = 86;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "There is a rocky hill rising above you to the east. At the top, you can see a lighthouse. Even during the day, it casts a beam of light out over the sea, automatically indicating shallows and dangerous rocks.";
	text2 = "You can see hunched figures skulking around the base of the tower. The raiders have taken control.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "You search the wreckage of this wagon. It looks like it was a small group of merchants who let themselves get lost.";
	text2 = "You find a handful of trade goods. They can be bartered for a few coins. You also find a bundle of old scrolls, wrapped up in violet ribbons. Inspection reveals them to contain old magical research. Interesting.";
	code =
		sf(100 + this_sec,2,1);
		change_coins(15,TRUE);
		reward_give(2);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "This was the camp of a group of lost travelers. Then a mated pair of ferocious beasts tracked them here. Now you stumble upon the gruesome remnants of the scene.";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "With a final whispered, _Bandage us,_ the ka-wolf expires. These strange creatures are mostly mindless, but they can memorize phrases of human speech to confuse their prey. They can be unnerving.";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "You have found another band of raiders. You are surprised that they are still lingering around. Their mission depended on speed and surprise. Yet, here they still are, getting killed by you.";
	text2 = "They must be protecting something nearby. You can't ask them what. They're too busy howling battle cries and charging.";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "This remote Ro farmhouse is surrounded by fields of flowers and herbs. The ingredients for potions and medicines and stranger draughts are grown here. Their odor makes you feel dizzy.";
	text2 = "Smoke rises from the chimney. Someone is home.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(9,11) == 0;
	question = "Knock on the door.";
	text1 = "You give the door several sharp raps. A tired man shouts through the door, _Go away! Don't you know there are raiders about!_";
	text2 = "Reassuring him that you are not a raider is unsuccessful. Then again, maybe he thinks that Havenites are the real raiders.";
	action = END_TALK;
	
begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(9,11) > 0;
	question = "Knock on the door.";
	text1 = "You give the door several sharp raps. A tired old Ro answers the door. He pokes his head out and looks around. _No raiders about. Fine. I'll trade with you. My herbs are my own, but I've scavenged some nice bits of gear. The owners won't mind if I sell them._ He chuckles.";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I would like information._";
	text1 = "He looks closer. _Havenite? No. I know nothing. I'm an old man, and I've gained wisdom. I don't give information to strangers. Nothing good comes from that in the Ro._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_What do you grow here?_";
	text1 = "_Herbs._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I'll trade with you._";
	text1 = "You conclude your business..";
	text2 = "";
	code =
		begin_shop_mode("Herb Farmer","The old hermit won't sell his herbs, but he has a few items plucked from the bodies of dead raiders.",21,4,0);
	break;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I don't need anything._";
	text1 = "The old man slams the door.";
	action = END_TALK;
	
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "There are several ka-wolves walking down the path. They seem sick. They are stumbling and swaying from side to side, as they hobble along.";
	text2 = "When you get close to them, they hold their arms out to you. _Bandage us. Bandage us. Bandage us._ You try to talk to them, but they keep repeating it.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_I need to know about this area._";
	text1 = "_Bandage us. Bandage us._ They just keep repeating it.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Scare them off.";
	text1 = "You shout and wave your weapons and make a lot of noise. They turn and flee, shouting, _Bandage us! Bandage us!_ When they run, they don't seem injured at all.";
	action = END_TALK;
	code =
		cancel_out_fight(1,1);
	break;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Try to bandage them.";
	text1 = "They don't seem cut or scratched, but maybe their injuries are hidden. When you get close, they shout, _Bandage us! Bandage us!_ And then they leap forward, throwing you off balance.";
	action = END_TALK;
	code =
		force_char_status(30000,1,6);
	break;
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Attack.";
	text1 = "When you draw your weapon, the ka-wolves shout, _Bandage us! Bandage us!_ Then they charge you, shouting that again and again.";
	action = END_TALK;

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				